package com.ruoyi.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.demo.mapper.SakuraHonorMapper;
import com.ruoyi.demo.domain.SakuraHonor;
import com.ruoyi.demo.service.ISakuraHonorService;

/**
 * 个人荣誉Service业务层处理
 * 
 * @author 蓝鲸
 * @date 2024-08-12
 */
@Service
public class SakuraHonorServiceImpl implements ISakuraHonorService 
{
    @Autowired
    private SakuraHonorMapper sakuraHonorMapper;

    /**
     * 查询个人荣誉
     * 
     * @param id 个人荣誉主键
     * @return 个人荣誉
     */
    @Override
    public SakuraHonor selectSakuraHonorById(Long id)
    {
        return sakuraHonorMapper.selectSakuraHonorById(id);
    }

    /**
     * 查询个人荣誉列表
     * 
     * @param sakuraHonor 个人荣誉
     * @return 个人荣誉
     */
    @Override
    public List<SakuraHonor> selectSakuraHonorList(SakuraHonor sakuraHonor)
    {
        return sakuraHonorMapper.selectSakuraHonorList(sakuraHonor);
    }

    /**
     * 新增个人荣誉
     * 
     * @param sakuraHonor 个人荣誉
     * @return 结果
     */
    @Override
    public int insertSakuraHonor(SakuraHonor sakuraHonor)
    {
        return sakuraHonorMapper.insertSakuraHonor(sakuraHonor);
    }

    /**
     * 修改个人荣誉
     * 
     * @param sakuraHonor 个人荣誉
     * @return 结果
     */
    @Override
    public int updateSakuraHonor(SakuraHonor sakuraHonor)
    {
        return sakuraHonorMapper.updateSakuraHonor(sakuraHonor);
    }

    /**
     * 批量删除个人荣誉
     * 
     * @param ids 需要删除的个人荣誉主键
     * @return 结果
     */
    @Override
    public int deleteSakuraHonorByIds(Long[] ids)
    {
        return sakuraHonorMapper.deleteSakuraHonorByIds(ids);
    }

    /**
     * 删除个人荣誉信息
     * 
     * @param id 个人荣誉主键
     * @return 结果
     */
    @Override
    public int deleteSakuraHonorById(Long id)
    {
        return sakuraHonorMapper.deleteSakuraHonorById(id);
    }
}
